﻿// Copyright (c) Inossem. All rights reserved.
// Licensed under the LGPL-3.0 license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DWF.Studio.ScriptEngine.Event
{
    [Serializable]
    public class ExecuteUnhandledExceptionEventArgs : BaseExecuteEventArgs
    {
        public string TypeName
        {
            set;
            get;
        }

        public string StackTrace
        {
            set;
            get;
        }

        public string Message
        {
            set;
            get;
        }

        public string Location
        {
            set;
            get;
        }

        public string ScriptPath
        {
            set;
            get;
        }

        //Oliver add 2021-06-21
        public override string ToString()
        {
            return $"{TypeName}{System.Environment.NewLine}{Message}{System.Environment.NewLine}{StackTrace}";
        }

    }
}
